package com.javapda.c328r.command.impl;

import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * 
 * 
 */
public class NakComediaCommand extends AbstractComediaCommand {
	private transient String toString;

	public String toString() {
		if (toString == null) {
			toString = new ToStringBuilder(this)
							.append("Nak Counter",getNakCounter())
							.append("Nak Error Number", getErrorNumber())
							.toString();
		}
		return toString;
	}
	public NakComediaCommand() {
		super(new NakComediaCommandId());
	}
	public NakComediaCommand(int[] nakInfo) {
		this();
		setParameter1(nakInfo[2]);
		setNakCounter(nakInfo[3]);
		setErrorNumber(nakInfo[4]);
		setParameter4(nakInfo[5]);
	}
	private void setErrorNumber(int errorNumber) {
		setParameter3(errorNumber);
	}
	public int getErrorNumber() {
		return getParameter3();
	}
	private void setNakCounter(int nakCounter) {
		setParameter2(nakCounter);
	}
	public int getNakCounter() {
		return getParameter2();
	}

}
